CopyDictionary
This nested class is used during copying to hold a mapping of original nodes to newly copied nodes and original links to newly copied links.
Implementa: ICopyDictionary
Propiedades
Copies : DataCollection<T, T, T, T>
Gets the collection of copied nodes and copied links as a DataCollection.
DestinationModel : GraphLinksModel<T, T, T, T>
Gets or sets the destination model for the copying operation.
SourceCollection : DataCollection<T, T, T, T>
Gets or sets the source collection of data to be copied for the copying operation.
SourceModel : GraphLinksModel<T, T, T, T>
Gets or sets the source model for the copying operation.
Métodos
AddCopiedLink(T, T)
Declare the mapping of a source link data to a copied link data.
- oldlink
- a link data in the source collection
- newlink
- a copied link data, or null to indicate that there is no copied link data for a given source link data
AddCopiedNode(T, T)
Declare the mapping of a source node data to a copied node data.
- oldnode
- a node data in the source collection
- newnode
- a copied node data, or null to indicate that there is no copied node data for a given source node data
ContainsSourceLink(T) : bool
This predicate is true if the given link data is in the source collection.
- oldlink
ContainsSourceNode(T) : bool
This predicate is true if the given node data is in the source collection.
- oldnode
FindCopiedLink(T) : T
Look up the copied link for a given source link.
- oldlink
- a source link data
Devuelve: the copied link data
FindCopiedNode(T) : T
Look up the copied node for a given source node.
- oldnode
- a source node data
Devuelve: the copied node data
RemoveSourceLink(T)
Remove any association between a source link data and any copied link data.
- srclinkdata
- a link data in the source collection
RemoveSourceNode(T)
Remove any association between a source node data and any copied node data.
- srcnodedata
- a node data in the source collection